#!/bin/bash

price=$[RANDOM%10]
i=1
while :
do
	read -p "price:" u_price
	if (($u_price>$price));then
		echo "多了啦"
	elif (($u_price<$price));then
		echo "少了啦"
	else (($u_price==$price))
		echo  "猜中了"
		break
	fi
	let i++
done

if (($i==1));then
	echo "you are rulai"
elif (($i>2 && $i<6));then
	echo "you are wukong"
elif (($i>10));then
	echo "you are bajie"
fi
